package com.hongmeng.teamwork.convert;

import com.hongmeng.teamwork.entity.dto.UserDto;
import com.hongmeng.teamwork.entity.po.User;
import com.hongmeng.teamwork.entity.vo.UserVo;
import com.lark.oapi.service.authen.v1.model.GetUserInfoRespBody;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    User convertDtoToEntity(UserDto userDto);
    List<User> convertDtoToEntityList(List<UserDto> userDto);

    UserVo convertGetUserRespBodyToVo(GetUserInfoRespBody respBody);
}
